<!doctype html>
<script>

navigator.serviceWorker.addEventListener('message', e => {
  e.source.postMessage({ methodName: 'test', details: {} });
  window.close();
});
navigator.serviceWorker.controller.postMessage('payment_app_window_ready');

</script>
